package org.springframework.boot.web.startup;

import org.springframework.boot.web.servlet.embed_tomcat.TomcatServletWebServerFactory;
import org.springframework.boot.web.servlet.server.ServletWebServerFactory;
import org.springframework.boot.web.servlet.server.WebServer;

import java.io.IOException;

/**
 * @author chenkh
 * @time 2020/11/23 16:27
 */
public class Main {
    public static void main(String[] args) throws IOException {
        ServletWebServerFactory servletWebServerFactory = new TomcatServletWebServerFactory(8080);
        WebServer webServer = servletWebServerFactory.getWebServer();
        webServer.start();

    }
}
